﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="YC_NewType.aspx.cs" Inherits="HSYCWeb.web.xwht.YC_NewType" %>
<%@ Register Assembly="NickLee.Web.UI" Namespace="NickLee.Web.UI" TagPrefix="nicklee" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
      <title></title>
 <link type="text/css" rel="Stylesheet" href="../../baseStyle.css" />
   
       <script type="text/javascript">
           function showSel() {
               if (divSel.style.display == "none") {
                   divSel.style.display = "";
                   document.getElementById("btnCx").style.color = "#FF0000";
               }
               else {
                   divSel.style.display = "none";
                   document.getElementById("MtxtD_XMMC").value = '';
                   document.getElementById("btnCx").style.color = "black";
                   jsList('search', '', '');
               }
           }

           function jsList(str1, str2, str3) {
               jsCall.Callback(str1, str2, str3);
           }
</script>
</head>
<body>
    <form id="form1" runat="server">
     <table cellpadding="0" cellspacing="0" border="0" class="newTable" align="center">
      <tr class="trBase">
        <td class="headDh">
            当前位置：新闻管理 » 新闻类别 
        </td>
        </tr>
    <tr class="trBase">
    <td align="left" class="tool_title" style="padding-left:20px; padding-bottom:3px"><input type="button" id="btnAdd" value="新 增" class="activeItem" onclick="window,open('YC_SBZLEdit.aspx?Command=New','_self','')"  style="height:23px" />&nbsp;&nbsp;&nbsp;
    <input type="button" id="btnCx" value="查 询" class="activeItem" style="height:23px" onclick="showSel()" /> </td>
    </tr>
    <tr style="background-color:#ffffff; height:10px;"><td></td></tr>
    </table>
    	
		<div  id="divSel" align="center" style="display:none"> 
		 <table cellspacing="1" cellpadding="1" class="newTable" align="center">
		 <tr class="trBase">
				<td  width="35%" align="right" style="padding-right:20px">
					<asp:Label id="lbl_XMMC" runat="server"  CssClass="labelBase">项目名称：</asp:Label>
			    </td>
			    <td width="65%" align="left">
					<asp:textbox id="MtxtD_XMMC" runat="server"  CssClass="inputBoxBottom1" Width="200px"></asp:textbox></td>			
                <td align="left">
                <input type="button" class="activeItem" style="height:23px" value="搜 索" onclick="jsList('search','','')" />
                      
                    </td>
			</tr>
			
		 </table>
		  
		<br />
		<br /> 
		</div>
		<div align="center">
		  <nicklee:CallBack runat="server" ID="jsCall"  PostState="True"  Width="100%"  LoadingPanelFadeDuration="800" LoadingPanelFadeMaximumOpacity="80" OnCallback="jsCall_Callback">
            <Content>
                <asp:Panel ID="Panel1" runat="server">     
		<table cellpadding="0" cellspacing="0" class="newTable" align="center">
		<tr class="trBase">
		<td> 
             <asp:Repeater ID="Repeater1" runat="server">  
    <HeaderTemplate>
      <table border="1" cellpadding="0" cellspacing="0" style="width:100%;border-collapse:collapse; text-align:center;">
      <tr class="trBase">
        <td style="background:url(../../images/Meun.jpg) repeat-x; width:6%;">序号</td>        
        <td style="background:url(../../images/Meun.jpg) repeat-x;width:32%">项目名称</td>
         <td style="background:url(../../images/Meun.jpg) repeat-x;width:20%">项目类别</td>
         <td style="background:url(../../images/Meun.jpg) repeat-x; width:14%">开始时间</td> 
          <td style="background:url(../../images/Meun.jpg) repeat-x; width:14%">结束时间</td>     
        <td style="background:url(../../images/Meun.jpg) repeat-x; width:14%">操作</td>
      </tr>
    </HeaderTemplate>
    <ItemTemplate>
      <tr class="trBase" onmouseover="this.style.backgroundColor='#FEF0C3'; this.style.cursor='hand;'" onmouseout="this.style.backgroundColor='white';">
        <td><%# Container.ItemIndex+1 %></td> 
        <td><%# DataBinder.Eval(Container.DataItem, "XMMC")%></td>       
        <td><%# DataBinder.Eval(Container.DataItem, "LBMC")%></td> 
         <td><%# Convert.ToDateTime( DataBinder.Eval(Container.DataItem, "STARTDATE")).ToShortDateString()%></td>       
        <td><%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "ENDDATE")).ToShortDateString()%></td>               
         <td >
             <asp:HyperLink ID="lkView" runat="server" Text="查看" class="linkBase" NavigateUrl='<%#"~/XMSB/YC_SBZLEdit.aspx?Command=View&CommandArg="+DataBinder.Eval(Container.DataItem, "ROW_ID") %>'></asp:HyperLink>&nbsp;&nbsp;<asp:HyperLink ID="lkUpdate"
                Visible='<%# DataBinder.Eval(Container.DataItem, "STATE").ToString()=="0" ? true:false%>' runat="server" Text="更新" class="linkBase" NavigateUrl='<%#"~/XMSB/YC_SBZLEdit.aspx?Command=Update&CommandArg="+DataBinder.Eval(Container.DataItem, "ROW_ID") %>'></asp:HyperLink>&nbsp;&nbsp;
                 <span  style='<%# DataBinder.Eval(Container.DataItem, "STATE").ToString()=="0" ? "display:":"display:none"%>' class="linkBase" onclick="if(confirm('确认要删除该申报项目吗？')){jsList('del','<%# DataBinder.Eval(Container.DataItem, "ROW_ID")%>','<%# DataBinder.Eval(Container.DataItem, "XMMC")%>');}">删除</span></td>
      </tr>
    </ItemTemplate>
    <FooterTemplate>
     </table>
    </FooterTemplate>
</asp:Repeater>
		</td>
		</tr>
		<tr class="trBase">
		<td>
<div style="background-color:#ebf3f5; width:100%; height:25px; text-align:right" align="center" class="trBase">
   <asp:label ID="lblCurrentPage" runat="server"></asp:label>
   <asp:HyperLink id="lnkFrist" runat="server">首页</asp:HyperLink>
   <asp:HyperLink id="lnkPrev" runat="server">上一页</asp:HyperLink>
   <asp:HyperLink id="lnkNext" runat="server">下一页</asp:HyperLink> 
   <asp:HyperLink id="lnkEnd" runat="server">尾页</asp:HyperLink>
</div>
</td>
		</tr>
		</table>
	 </asp:Panel>
            </Content>
            <ClientEvents>  
                  
             </ClientEvents>
            <LoadingPanelClientTemplate>
                <table style="width: 100%; height: 100%;" cellspacing="0" cellpadding="0" border="0"
                    bgcolor="#e0e0e0">
                    <tr style="width: 100%; height: 100%;">
                        <td style="width: 100%; height: 100%; vertical-align: middle; text-align: center;">
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tr>
                                    <td style="font-family: tahoma; font-size: 12px; text-align: center;">
                                        数据载入中...&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td style="font-family: tahoma; font-size: 12px; text-align: center;">
                                        <img alt="" src="../../images/GreenBar.gif" border="0" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
           </LoadingPanelClientTemplate>
                </nicklee:CallBack>	
		</div>

    </form>
</body>
</html>